#!/usr/bin  python
# _*_ coding:utf-8 _*_
"""
----------------------------------
    File Name: tag
    Description:
        Author: lhw
        Date: 2020/8/7
-----------------------------------
"""
from rest_framework import serializers
from Admin import models


class TagModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Tag
        fields = ("id", "tag_title")
        extra_kwargs = {
                "id": {
                    "read_only": True
                }
        }